package com.anti.modular.bus.buscostincomeexpenses.entity;

import com.anti.commom.pojo.node.BaseTreeNode;
import com.anti.commom.support.model.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.List;

/**
 * 收入支出配置
 *
 * @author anti
 * @date 2021-04-08 14:15:30
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name="bus_cost_income_expenses")
public class BusCostIncomeInsertExpenses  extends BaseEntity  implements BaseTreeNode {

    /**
     * 主键id
     */
    @Id
    private Long id;

    /**
     * pid
     */
    private Long pid;

    /**
     * 名称
     */
    private String name;

    /**
     * 类型 （字典 1收入类别-其他收入，账单临时收入 2支出类别-其他支出，账单临时支出）
     */
    private String type;

    /**
     * 状态（字典 0正常 1停用 2删除）
     */
    private Integer status;

    private String level;
    /**
     * 子节点
     */
    private List children;

    private boolean checked = false;


    @Override
    public void setChildren(List children) {
        this.children = children;
    }

}
